/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 07 - 02
 * Time: 20:00
 */
class Solution2 {
    public String reverseLeftWords(String s, int n) {
        StringBuilder a = new StringBuilder();
        char[] array = s.toCharArray();
        for(int i = n; i < array.length; i++) {
            a.append(array[i]);
        }
        for(int i = 0; i < n; i++) {
            a.append(array[i]);
        }
        return a.toString();
    }
}
